import request from '@/utils/request/index.js'
export default {

	/**
	 * 查询视频列表
	 * @param search
	 * @param index
	 * @param page
	 * @param limit
	 * @returns {*}
	 */
	queryVideo(search,index,page,limit,delFlag){
		return request.request({
			url : '/h5/nocvideo/listByUser',
			method: 'post',
			data :{
				search: search,
				status: index,
				page: page,
				limit: limit,
				delFlag:delFlag,
			},
		})
	},
	/**
	 * 上下架视频
	 * @param id
	 * @param status
	 * @returns {*}
	 */
	upAndDown(id,status){
		return request.request({
			url : '/h5/nocvideo/upAndDown',
			method: 'post',
			data :{
				id: id,
				status: status
			},
		})
	},
	/**
	 * 删除视频
	 * @param id
	 * @returns {*}
	 */
	delVideo(id){
		return request.request({
			url : '/h5/nocvideo/delete',
			method: 'post',
			data :{
				id: id,
			},
		})
	}
	
}